import { IGeoFile } from '@/types/geofile';
import { IGeometry } from './multi_data'
import { IPosition } from './position'

/**
 * @title 面积
 * @description
 */
interface IArea {
    areaUnit: string
    areaNum: number | string
}

/**
 * @title 覆盖图集合
 * @description
 */
interface IOverlayDataSet {
    created_time: string
    details: {
        bbox: number[]
        cron: string
        satellite_type: string[]
    }
    features: IGeoFile[]
    planno: string
}

interface IOverlayPlanConfig {
    bbox: number[]
    cron: string
    satellite_type: string[]
}

/**
 * @title 覆盖图
 * @description
 */
interface IOverlay {
    overlayId: string
    extent: IPosition[]
    centerLocation: IPosition
    area: IArea
    createData: number
    // belongToFile: IGeoData
}

export type { IOverlayDataSet, IOverlay, IArea, IOverlayPlanConfig }
